package controlador;
import java.util.Date;
import org.joda.time.DateTime;
import org.primefaces.event.SelectEvent;

public class ScheduleController 
{
   
   private Date dateFrom,dateTo;
   
   ScheduleController()
   {
      dateFrom = new Date();
      dateTo = new Date();
      
   }   
   
   public Date dateFromSelected(SelectEvent event) {
      DateTime d = new DateTime(dateFrom);
        dateFrom = d.toDate();
         dateTo = dateFrom;
         return dateTo;
   }   
}
